home *** CD-ROM | disk | FTP | other *** search
- //=--------------------------------------------------------------------------=
- // Button.ODL
- //=--------------------------------------------------------------------------=
- // Copyright 1995 Microsoft Corporation. All Rights Reserved.
- //
- // THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
- // ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
- // THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
- // PARTICULAR PURPOSE.
- //=--------------------------------------------------------------------------=
- //
- // ODL file for the control(s) and automation object(s) in this inproc server
- //
- #include <olectl.h>
- #include "dispids.h"
-
- // can't include oaidl.h, so this will have to do
- //
- #define DISPID_NEWENUM -4
-
-
- //=--------------------------------------------------------------------------=
- // the libid for this type libray
- //
- [
- uuid(19204760-21a5-11cf-9d53-00aa003c9cb6),
- helpstring("Button Control Library"),
- lcid(0x0000),
- version(1.0)
- ]
- library ButtonObjects {
-
- // standard imports
- //
- importlib("STDOLE32.TLB");
- importlib(STDTYPE_TLB);
-
- // primary dispatch interface for CButton control
- //
- [
- uuid(1a560840-21a5-11cf-9d53-00aa003c9cb6),
- helpstring("Button Control"),
- hidden,
- dual,
- odl
- ]
- interface IButton : IDispatch {
-
- // properties
- //
- [id(DISPID_CAPTION), propget]
- HRESULT Caption([out, retval] BSTR *pbstrCaption);
- [id(DISPID_CAPTION), propput]
- HRESULT Caption([in] BSTR bstrCaption);
-
- // methods
- //
- [id(DISPID_ABOUTBOX)]
- void AboutBox(void);
- };
-
- // event interface for CButton controls ...
- //
- [
- uuid(1b9c9200-21a5-11cf-9d53-00aa003c9cb6),
- helpstring("Event interface for Button control"),
- hidden
- ]
- dispinterface DButtonEvents {
- properties:
- methods:
- [id(DISPID_CLICK)]
- void Click(void);
- [id(DISPID_DBLCLICK)]
- void DblClick(void);
- [id(DISPID_MOUSEDOWN)]
- void MouseDown(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
- [id(DISPID_MOUSEMOVE)]
- void MouseMove(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
- [id(DISPID_MOUSEUP)]
- void MouseUp(short Button, short Shift, OLE_XPOS_PIXELS x, OLE_YPOS_PIXELS y);
- };
-
- // coclass for CButton controls
- //
- [
- uuid(1ce4a260-21a5-11cf-9d53-00aa003c9cb6),
- helpstring("Button control")
- ]
- coclass Button {
- [default] interface IButton;
- [default, source] dispinterface DButtonEvents;
- };
- };
-
-
-